package com.iversonx.facade.example_1.service.v2;

import com.iversonx.facade.example_1.remote.CostingService;
import com.iversonx.facade.example_1.remote.InventoryService;
import com.iversonx.facade.example_1.remote.LogisticsService;
import com.iversonx.facade.example_1.remote.OrderVerifyService;
import com.iversonx.facade.example_1.remote.PaymentGatewayService;
import com.iversonx.facade.example_1.remote.domain.OrderDetails;
import com.iversonx.facade.example_1.remote.v2.OrderSubmitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 **/
@Service
public class ClientServiceV2 {
    @Autowired
    private OrderSubmitService orderSubmitService;
    
    public void submitOrder() {
        // 创建订单信息
        OrderDetails orderDetails = new OrderDetails("Java Design Pattern book",
                "Simplified book on design patterns in Java",
                500, 10, "Street No 1", "Educational Area", 1212,
                "8811123456");
    
        orderSubmitService.submit(orderDetails);
    }
}
